From b962d7686acd4b23d6765b782b2fdb58d063195c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 5 Jan 2014 09:19:58 -0500 Subject: [PATCH] Color chooser: More accessible names Set the accessible name of the 'custom color' button too. --- gtk/gtkcolorchooserwidget.c | 3 ++- testsuite/a11y/colorchooser.txt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c index 9665490e15..a24c993e8f 100644 --- a/gtk/gtkcolorchooserwidget.c +++ b/gtk/gtkcolorchooserwidget.c @@ -526,7 +526,8 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc) gtk_widget_set_name (button, "add-color-button"); atk_obj = gtk_widget_get_accessible (button); atk_object_set_role (atk_obj, ATK_ROLE_PUSH_BUTTON); - atk_object_set_description (atk_obj, _("Create custom color")); + atk_object_set_name (atk_obj, _("Custom color")); + atk_object_set_description (atk_obj, _("Create a custom color")); connect_button_signals (button, cc); gtk_color_swatch_set_icon (GTK_COLOR_SWATCH (button), "list-add-symbolic"); gtk_container_add (GTK_CONTAINER (box), button); diff --git a/testsuite/a11y/colorchooser.txt b/testsuite/a11y/colorchooser.txt index e3e73be61c..995f494139 100644 --- a/testsuite/a11y/colorchooser.txt +++ b/testsuite/a11y/colorchooser.txt @@ -717,7 +717,8 @@ window1 "push button" parent: unnamed-GtkContainerAccessible-39 index: 0 - description: Create custom color + name: Custom color + description: Create a custom color state: enabled focusable sensitive showing visible toolkit: gtk -- 2.30.2